package com.biboheart.demo.report.support.controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseResult<T> {
    public static final ResponseResult<?> EMPTY = new ResponseResult<>();
    private int code; // 结果码，对应结果码表
    private String message; // 结果描述
    private T result; // 结果

    public static <T> ResponseResult<T> ok(T result) {
        return new ResponseResult<>(0, "success", result);
    }
}
